﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.ExtendMethod {
  public static class DataType {

    public static string FirstUpper(this string instance){
      if(string.IsNullOrWhiteSpace(instance)) {
        return string.Empty;
      } else if(instance.Length == 1) {
        return instance.ToUpper();
      } else {
        return string.Format("{0}{1}", instance.Substring(0, 1).ToUpper(), instance.Substring(1));
      }
    }

 

  }
}
